package com.mgs.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mgs.admin.api.dto.UserDTO;
import com.mgs.admin.api.entity.User;
import com.mgs.admin.api.vo.UserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName UserMapper
 * @Description TODO 用户表 Mapper 接口
 * @Author zhanglei
 * @Date 2021/12/16 17:43
 * @Version 1.0
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    /**
     * @param page    分页
     * @param userDTO 查询参数
     * @return com.baomidou.mybatisplus.core.metadata.IPage<java.util.List < com.mgs.admin.api.vo.UserVO>>
     * @Description //用户分页查询
     * @Author zhanglei
     * @Date 2021/12/17 9:53
     */
    IPage<List<UserVO>> getUserVosPage(Page page, @Param("query") UserDTO userDTO);
}
